import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;


public class ChessPlate {
	private static ChessPlate instance=new ChessPlate();
	JFrame chessplate=new JFrame("Chinese Chess");
	
	public static ChessPlate getInstance(){
		return instance;
	}
	private ChessPlate(){
		chessplate.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		chessplate.getContentPane().add(ME.getMe(),BorderLayout.SOUTH);
		chessplate.getContentPane().add(PlatePaintPanel.getInstance(),BorderLayout.CENTER);
		chessplate.getContentPane().add(cmcpanel.getInstance(),BorderLayout.EAST);
		chessplate.setSize(1000, 1000);
		//chessplate.setResizable(false);
		
		chessplate.setVisible(true);
	}
	
}
